package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.DateSetmeal;
import com.itheima.pojo.Member;

import java.util.List;
import java.util.Map;

public interface MemberService {
    Member findByTelephone(String telephone);

    void add(Member member);

    List<Integer> findMemberCountByMonths(List<String> months);

    /*分页查询*/
    PageResult findPage(QueryPageBean queryPageBean) throws Exception;

    /*根据ID删除*/
    void delete(Integer id) throws Exception;

    /*编辑数据*/
    void edit(Member member);

    /*查询所有检查项数据*/
    List<Member> findAll();

    /*根据ID查询数据*/
    Member findById(Integer id);

    List<Map<String, Object>> getMemberReport(Integer[] memberIds);


    List<Map> getManagers();

    List<DateSetmeal> findByDate(Map map, String telephone);

    List<DateSetmeal> findByOid(String telephone, Integer oid);

    List<Map<String, Object>> findMemberAge();

    List<Map<String, Object>> findAgeByBirthday();
}
